/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package server;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Date;

/**
 *
 * @author stefan
 */
public class Log {

    private static File logFile = new File("C:/Users/stefan/Desktop/PIAlog.txt");

    public static void i(String log) {
        try (PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(logFile, true)))) {
            Date date = new Date();
            out.println("" + date.toString() + log);
        } catch (IOException e) {
        }
    }

}
